home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14042 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  39 lines

  1. Newsgroups: gnu.gcc,gnu.g++,comp.sys.hp.hpux,gnu.gcc.help,comp.lang.c
  2. Path: phcoms4.seri.philips.nl!panther!baynes
  3. From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
  4. Subject: Re: Why can't gcc find some object files in archive libraries?
  5. Sender: news@ukpsshp1.serigate.philips.nl (account for localnews)
  6. Message-ID: <Dpp3xy.n1n@ukpsshp1.serigate.philips.nl>
  7. Date: Thu, 11 Apr 1996 11:29:56 GMT
  8. References: <markj.829166983@msn>
  9. Organization: Philips Semiconductors, Southampton, UK
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Followup-To: gnu.gcc,gnu.g++,comp.sys.hp.hpux,gnu.gcc.help,comp.lang.c
  12.  
  13. Mark Johnson (markj@msn.ustc.vlsi.com) wrote:
  14. : I've been trying to figure out why while running g++ on hpux 9.05, for
  15. : certain sources, the linker misses the object file.  I've noticed this
  16. : with several *.o files in archived libraries.  But I've done a number
  17. : of test cases and I'm sure that the linker is just overlooking the
  18. : object file for some unknown reason.
  19.  
  20. : One of the object files is xmalloc.o in the libiberty.a library.  If I
  21. : extract xmalloc.o from the library and put it in the object list
  22. : everything compiles fine.  But if I don't put the actual *.o file on
  23. : the object list the linker won't find it.  If I explicitely put the
  24. : library on my path it still won't find it.  If I take the *.o file and
  25. : make a new archive library with some bogus name it still won't find
  26. : it.  I've put another *.o file in the library just to make sure that
  27. : the linker is reading the library.  It is.  
  28.  
  29. What order do you have for the files on the command line? If the archive
  30. containing xmalloc comes before the object file that calls xmalloc then
  31. the linker will not attempt to read xmalloc from the archive.
  32.  
  33. --
  34. Stephen Baynes                              baynes@ukpsshp1.serigate.philips.nl
  35. Philips Semiconductors Ltd
  36. Southampton                                 My views are my own.
  37. United Kingdom
  38.  Are you using ISO8859-1? Do you see ⌐ as copyright, ≈ as division and ╜ as 1/2?
  39.